﻿module App.Models {
    export interface IYahooStockQuote {
        Date: Date;
        Open: number;
        High: number;
        Low: number;
        Close: number;
        Volume: number;
        AdjustedClose: number;
        Symbol: string;
    }

    export class YahooStockQuotePoint implements IYahooStockQuote {
        Date: Date;
        Open: number;
        High: number;
        Low: number;
        Close: number;
        Volume: number;
        AdjustedClose: number;
        Symbol: string;
        //charting points;

        constructor(quote: IYahooStockQuote) {
            this.Date = quote.Date;
            this.Open = quote.Open;
            this.High = quote.High;
            this.Low = quote.Low;
            this.Close = quote.Close;
            this.Volume = quote.Volume;
            this.AdjustedClose = quote.AdjustedClose;
            this.Symbol = quote.Symbol;
        }
    }
}